package com.o2o.model.user;

import java.util.Date;

import org.springframework.stereotype.Component;

import com.o2o.base.BaseModel;

@Component
public class UserAuthentication extends BaseModel{

	/**
	 * 用户认证类，企业或者个体认证
	 */
	private static final long serialVersionUID = -67619955039599445L;
	
	private long id;
	
	private long userId;//用户id
	
	private String companyName;//注册名
	
	private String userName;//用户名
	
	private Date registTime;//营业执照有效期开始
	
	private Date finishTime;//营业执照有效期结束
	
	private String registNumber;//注册号
	
	private long pictureFileId;//营业执照图片id
	
	private int registType;//注册类型，1为企业认证，2为个体认证
	
	private String fullAddressDetail;//全地址
	
	private int areaCode;
	
	private String address;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}


	public String getFullAddressDetail() {
		return fullAddressDetail;
	}

	public void setFullAddressDetail(String fullAddressDetail) {
		this.fullAddressDetail = fullAddressDetail;
	}

	public int getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(int areaCode) {
		this.areaCode = areaCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getRegistTime() {
		return registTime;
	}

	public void setRegistTime(Date registTime) {
		this.registTime = registTime;
	}

	public Date getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

	
	public String getRegistNumber() {
		return registNumber;
	}

	public void setRegistNumber(String registNumber) {
		this.registNumber = registNumber;
	}

	public long getPictureFileId() {
		return pictureFileId;
	}

	public void setPictureFileId(long pictureFileId) {
		this.pictureFileId = pictureFileId;
	}

	public int getRegistType() {
		return registType;
	}

	public void setRegistType(int registType) {
		this.registType = registType;
	}

	@Override
	public String toString() {
		return "UserAuthentication [id=" + id + ", userId=" + userId
				+ ", companyName=" + companyName + ", userName=" + userName
				+ ", registTime=" + registTime + ", finishTime=" + finishTime
				+ ", registNumber=" + registNumber + ", pictureFileId="
				+ pictureFileId + ", registType=" + registType
				+ ", fullAddressDetail=" + fullAddressDetail
				+ ",  areaCode=" + areaCode + ", address=" + address + "]";
	}
	
}
